import request from '@/utils/request'

// 查询方案的考评项列表
export function listEvItem(tescId) {
  return request({
    url: '/teacher/evaluation/item/list/'+ tescId,
    method: 'get'
  })
}

// 查询考评详细
export function getEvItem(tetiId) {
  return request({
    url: '/teacher/evaluation/item/info/' + tetiId,
    method: 'get'
  })
}

// 查询部门下拉树结构
export function treeselect() {
  return request({
    url: '/sys/dept/treeselect',
    method: 'get'
  })
}

// 新增
export function addEvItem(data) {
  return request({
    url: '/teacher/evaluation/item/create',
    method: 'post',
    data: data
  })
}

// 修改
export function updateEvItem(id,data) {
  return request({
    url: '/teacher/evaluation/item/update/' + id,
    method: 'put',
    data: data
  })
}

// 删除
export function delEvItem(ids) {
  return request({
    url: '/teacher/evaluation/item/deleteByIds/' + ids,
    method: 'delete'
  })
}
